package com.yuantu.judiciary.service;

import com.yuantu.judiciary.model.enums.MessageType;
import com.yuantu.judiciary.model.vo.MessageInfoVO;
import com.yuantu.judiciary.model.vo.MessageNumVO;
import com.yuantu.judiciary.model.vo.PageVO;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 消息模块
 *
 * @author syw
 * @since 2023-08-23
 **/
public interface IMessageService {

    Integer getMessageCount(Long accountId);

    List<MessageNumVO> getMessageNum(Long accountId);

    PageVO<MessageInfoVO> getListByType(Long accountId, MessageType type, Pageable pageable);

    Boolean read(Long accountId, Long id);

    Boolean readAllByType(Long accountId, MessageType type);

}
